package com.moyuaninfo.myyserver.framework.enums;

/**
 * @author 祥霸
 * @date 14:41 2019/8/24
 */
public enum JsonResultEnum {
    /** */
    SUCCESS(200, "成功", "JsonResult"),

    UNAUTHORIZED(401, "未认证（签名错误）", "JsonResult"),

    FAIL(400, "失败", "JsonResult"),

    INTERNAL_SERVER_ERROR(500, "系统开了会小差", "JsonResult"),

    ;
    private int code;

    private String msg;

    private String modelRef;

    JsonResultEnum(int code, String msg, String modelRef) {
        this.code = code;
        this.msg = msg;
        this.modelRef = modelRef;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public String getModelRef() {
        return modelRef;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
